package com.dubbo.service.impl;

import org.springframework.stereotype.Component;

import com.dubbo.domain.User;
import com.dubbo.service.UserService;

//@Service("userService")
@Component("userService")
@com.alibaba.dubbo.config.annotation.Service
public class UserServiceImpl implements UserService{

	@Override
	public User getUser(Long id) {
		User user = new User();
		user.setName("张三");
		user.setAge(20);
		System.out.println("调用了哈...." + user.getName());
		return user;
	}

}
